csd: Avoid jumping windows
authorMatthias Clasen <mclasen@redhat.com>
Fri, 27 Sep 2013 03:19:29 +0000 (23:19 -0400)
committerMatthias Clasen <mclasen@redhat.com>
Fri, 27 Sep 2013 03:19:29 +0000 (23:19 -0400)
commit377c124446bfda25f6d9faf6d14bb54c4aa66507
tree2fd22c9dbb6dc291797565aeff58ce5a1f74608f
parent71ad9a8fdd8aaa9019e05de58b38253da02b1b2e
csd: Avoid jumping windows

The size of the shadow and invisible borders can (and usually
will) change between backdrop and focused windows, while the
overall window size remains unchanged. This causes the visible
window to visually 'jump'. We can avoid this by always reserving
the maximum of the focused and unfocused border sizes. The code
for positioning the input-only windows making up the invisible
border is adjusted to deal with this. We now always place the
invisible border right outside the visible content, even if the
shadow extends out much farther.

https://bugzilla.gnome.org/show_bug.cgi?id=707524
gtk/gtkwindow.c